package com.huage.xml;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import java.io.File;
import java.io.IOException;

public class JsoupSelectorDemo {
    public static void main(String[] args) throws IOException {
        String path = JsoupDemo.class.getClassLoader().getResource("Users.xml").getPath();
        Document document = Jsoup.parse(new File(path), "UTF-8");
        Elements users_user = document.select("name");
        System.out.println(users_user);
    }
}
